<?php
namespace logic;
use EasyWeChat\Foundation\Application;

class Wechat
{
	public static  function app(){
		$options = [
			'debug'  => true,
			'app_id' => config('wechat.app_id'),
			'secret' => config('wechat.secret'),
			'token'  => config('wechat.token'),
			'aes_key'=> config('wechat.aes_key'), // 可选
			'log' => [
				'level' => 'debug',
				'file'  => '/tmp/easywechat.log', // XXX: 绝对路径！！！！
			],
		];

		$app = new Application( $options );
		return $app;
	}
}